package com.changpay.zywy.mvp.presenter

import com.changpay.zywy.base.BasePresenter
import com.changpay.zywy.ext.ss
import com.changpay.zywy.mvp.contract.*
import com.changpay.zywy.mvp.model.*


/**
 * Created by chenxz on 2018/5/27.
 */
class CountTrendPresenter : BasePresenter<CountTrendContract.Model, CountTrendContract.View>(),
    CountTrendContract.Presenter {
    override fun getTrend(map: MutableMap<String, String>) {
        mModel?.getTrend(map)?.ss(mModel, mView) {
            mView?.showTrend(it.result)
        }
    }


    override fun createModel(): CountTrendContract.Model? = CountTrendModel()

}